package edu.siu.math.egut.egut;

import edu.siu.math.egut.util.ExceptionalGroup;



/**
 * Wrapper for a LiE Group
 * 
 * @author Joe Pleso
 *
 */
public class LiEGroup extends AbstractLiEObject {

    /**
     * 
     */
    private static final long serialVersionUID = 1L;
    private final String s;
    
    /**
     * Creates a new LiEGroup object from the specified LiE group.
     * 
     * @param s the LiE group
     */
    public LiEGroup (String s){
	super(LiEType.GRP);
	this.s = s.trim();
    }
    
    public String toString(){
	return s;
    }
    
  
    public Object getJavaObject() {
/*	if (s.equals("E8")) TODO reenable groups other than G2 when test phase complete
	    return Group.E8;
	if (s.equals("E7"))
	    return Group.E7;
	if (s.equals("E6"))
	    return Group.E6;
	if (s.equals("F4"))
	    return Group.F4;*/
	if (s.equals("G2"))
	    return ExceptionalGroup.G2;
	
	return null;
    }

}
